package xin.val1ant.demo_idea_community.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HelloController {

//    @GetMapping("/hello")
//    public String hello() {
//        return "hello";
//    }

    @RequestMapping("/")
    public String index() {
        return "index";
    }

    @GetMapping("/login2")
    public String login() {
        return "login";
    }
}
